package com.aaa.doctor.controller;

import com.aaa.doctor.service.PatientFileService;
import com.aaa.entity.PatientFile;
import com.aaa.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @version 1.8.0_181
 * @Author ZXJ
 * @Date 2023/3/24 20:01
 * @注释
 */
@RestController
@RequestMapping("/doctor/patientfile")
public class PatientFileController {
    @Autowired
    private PatientFileService patientFileService;

    /**
     * 根据患者id查询患者档案信息
     * @param patientId
     * @return
     */
    @GetMapping("/getByPatientFileId/{patientId}")
    public Result<PatientFile> getByPatientFileId(@PathVariable String patientId){
        return patientFileService.getByPatientFileId(patientId);
    }
}
